// /**
//  * Copyright © 2015 Magento. All rights reserved.
//  * See COPYING.txt for license details.
//  */

@import 'module/_collapsible_navigation.less';

//
//  Theme variables
//  _____________________________________________

//
//  Messages
//  ---------------------------------------------

@message-global-note__color: @text__color;
@message-global-note__background: @color-yellow-light2;
@message-global-note-link__color: @link__color;
@message-global-note-link__color-hover: @link__hover__color;
@message-global-note-link__color-active: @link__active__color;
@message-global-note__border-color: @color-yellow-light3;

@message-global-caution__color: @color-white;
@message-global-caution__background: @color-red9;
@message-global-caution-link__color: @link__color;
@message-global-caution-link__color-hover: @link__hover__color;
@message-global-caution-link__color-active: @link__active__color;
@message-global-caution__border-color: none;

@customer-welcome__z-index: @dropdown-list__z-index + 1;

@addto-color: @color-gray60;
@addto-hover-color: @primary__color;

@price-color: @color-gray34;
@price-size: 22px;
@price-size-desktop: 36px;

@button__shadow: inset 0 1px 0 0 rgba(255, 255, 255, 1), inset 0 -1px 0 0 fade(@border-color__base, 30); //  Used for secondary button and catalog toolbar controls
@button__shadow-active: inset 0 1px 0 0 fade(@border-color__base, 80), inset 0 -1px 0 0 fade(@border-color__base, 30); //  Used for secondary button and catalog toolbar controls

@h1__margin-bottom__desktop: @indent__xl;

//
//  Footer
//  ---------------------------------------------

@footer__background-color: @color-gray-light01;
@footer-links-separator-border-color: @color-gray-light4;
@footer-links-color: @color-gray34;
@footer-links-color-hover: @color-gray20;
@footer-links-color-current: @primary__color__light;

//
//  Layered navigation
//  ---------------------------------------------

@filter-title-background-color: @color-gray94;
@filter-link: @color-gray-darken4;
@filter-link-hover: darken(@filter-link, 30%);
@filter-quantity: @color-gray52;

//
//  Common
//  _____________________________________________

& when (@media-common = true) {
    body {
        .lib-css(background-color, @page__background-color);
    }

    //  ToDo UI: move it directly to .page-wrapper (now it doesn't appear in mediaquery cuz of size of css)
    .page-wrapper {
        .ie9 & {
            .lib-css(background-color, @page__background-color);
            min-height: 0;
        }
    }
    
    .columns .column.main {
        max-width: 100%;
    }

    //
    //  Header
    //  ---------------------------------------------

    .page-header {
        .lib-css(background-color, @header__background-color);
        .lib-css(border-top, 4px solid @header__border-color);
        position: relative;
        z-index: 4;
        
        .panel.wrapper {
            .lib-css(background-color, @header-panel__background-color);
            .lib-css(color, @header-panel__text-color);
        }
        
        &.type1 {
            .minicart-wrapper {
                position: absolute;
                top: 50%;
                left: 15px;
                margin-top: -20px;
            }
            .logo {
                margin: 28px 0;
            }
        }
        &.type2 {
            background-color: @header__type2_background-color;
            color: @header__type2_text-color;
            border: 0;
            .header.panel {
                > .header.links {
                    > li {
                        > a {
                            color: @header__type2_top_panel_link-color;
                            
                            &:hover {
                                color: @header__type2_top_panel_link-hover-color;
                            }
                        }
                    }
                }
            }
            .minicart-wrapper {
                position: absolute;
                top: 50%;
                left: 15px;
                margin-top: -20px;
                
                .action.showcart {
                    &:before, &.active:before {
                        color: @header-type2-minicart__icon_color;
                    }
                    .counter.qty {
                        color: @header-type2-minicart__qty_color;
                    }
                }
            }
        }
        &.type3 {
            border: 0;
            background-color: @header__type3_background-color;
            
            .logo {
                display: block;
                margin: 20px 0 25px 25px;
                float: right;
                z-index: 7;
            }
        }
        &.type4 {
            border: 0;
            background-color: @header__type4_background-color;
            
            .logo {
                display: block;
                margin: 20px 0 25px 25px;
                float: right;
            }
        }
        &.type6 {
            .panel.wrapper {
                background-color: @header__type6_top_panel_background-color;
                color: @header__type6_top_panel_text-color;
            }
            .panel.header {
                .header.links {
                    > li {
                        > a {
                            color: @header__type6_top_panel_link-color;
                            
                            &:hover {
                                color: @header__type6_top_panel_link-hover-color;
                            }
                        }
                    }
                }
            }
        }
        &.type8 {
            .header.content {
                background-color: @theme-color;
            }
            .minicart-wrapper {
                position: absolute;
                top: 50%;
                left: 15px;
                margin-top: -20px;
                
                .action.showcart {
                    &:before, &.active:before {
                        color: #fff;
                    }
                    .counter.qty {
                        color: #000;
                    }
                }
            }
        }
        &.type9 {
            border: 0;
            background-color: #5c616e;
            
            .logo {
                display: block;
                margin: 28px 0 28px 25px;
                float: right;
            }
        }
        &.type11 {
            .minicart-wrapper {
                position: absolute;
                top: 50%;
                left: 15px;
                margin-top: -20px;
            }
        }
        &.type12 {
            border: 0;
            background-color: #fff;
            
            .logo {
                display: block;
                margin: 25px 0 25px 25px;
                float: right;
            }
        }
    }

    .header.panel {
        > .header.links {
            .lib-list-inline();
            float: left;
            font-size: 0;
            margin-right: auto;
            margin-left: @indent__base;
            > li {
                font-size: 11px;
                text-transform: uppercase;
                > a {
                    .lib-link(
                    @_link-color: @header-panel__text-color,
                    @_link-text-decoration: none,
                    @_link-color-visited: @header-panel__text-color,
                    @_link-text-decoration-visited: none,
                    @_link-color-hover: @header-panel__text-color,
                    @_link-text-decoration-hover: underline,
                    @_link-color-active: @header-panel__text-color,
                    @_link-text-decoration-active: underline
                    );
                }
            }
        }
    }

    .header {
        &.content:extend(.abs-add-clearfix all) {
            position: relative;
        }
    }

    .logo {
        display: inline-block;
        vertical-align: middle;
        margin: 30px 0;
        max-width: 50%;
        position: relative;
        z-index: 5;
        img {
            display: block;
            max-height: 50px;
            max-width: 100%;
        }
        .page-print & {
            display: inline-block;
            float: none;
        }
    }

    .page-main {
        > .page-title-wrapper {
            .page-title + .action {
                margin-top: @indent__l;
            }
        }
    }

    .action.skip {
        &:not(:focus) {
            &:extend(.abs-visually-hidden all);
        }
        &:focus {
            .lib-css(background, @color-gray94);
            .lib-css(padding, @indent__s);
            box-sizing: border-box;
            right: 0;
            position: absolute;
            text-align: center;
            top: 0;
            width: 100%;
            z-index: 15;
        }
    }

    //
    //  Global notice
    //  ---------------------------------------------

    .message.global {
        p {
            margin: 0;
        }
        &.noscript,
        &.cookie {
            .lib-message(@_message-type: global-note);
            margin: 0;
        }
        &.cookie {
            bottom: 0;
            left: 0;
            position: fixed;
            right: 0;
            z-index: 3;
            .actions {
                margin-top: @indent__s;
            }
        }
        &.demo {
            .lib-message(@_message-type: global-caution);
            margin-bottom: 0;
            text-align: center;
        }
    }

    .page-header,
    .page-footer {
        .switcher {
            height: 15px;
            .options {
                .lib-dropdown(
                    @_dropdown-actions-padding: 0,
                    @_dropdown-list-item-padding: 0,
                    @_dropdown-toggle-icon-content: @icon-down,
                    @_dropdown-toggle-active-icon-content: @icon-up,
                    @_icon-font-text-hide: true,
                    @_icon-font-margin: 0 0 0 5px,
                    @_icon-font-size: 16px,
                    @_icon-font-line-height: 15px,
                    @_dropdown-list-min-width: 160px,
                    @_dropdown-list-border: 0
                );
                ul.dropdown {
                    border-radius: 3px;
                    box-shadow: 0 0 3px rgba(0,0,0,0.25);
                    right: -10px;
                    li {
                        border-radius: 3px;
                    }
                    a {
                        display: block;
                        padding: 8px 10px;
                        color: @base-font-color;
                        font-size: 11px;
                        
                        & > img {
                            margin-bottom: 2px;
                            margin-left: 3px;
                        }
                        &:hover {
                            text-decoration: none;
                        }
                    }
                }
            }
            strong {
                font-weight: @font-weight__regular;
                line-height: 15px;
                font-size: 11px;
                vertical-align: top;
                display: inline-block;
                
                & > img {
                    margin-bottom: 2px;
                    margin-left: 3px;
                }
            }
            .label:extend(.abs-visually-hidden all) {
            }
        }
    }
    span.split {
        height: 14px;
        width: 1px;
        border-right: 1px solid #ccc;
        margin: 0 13px;
    }
}

//
//  Navigation
//  ---------------------------------------------

.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
    
    .page-header {
        &.type1 {
            .logo {
                height: 40px;
                float: right;
                margin: 10px 0;
                img {
                    max-width: 100%;
                    max-height: 100%;
                    width: auto;
                }
            }
            .minicart-wrapper {
                position: relative;
                top: auto;
                right: auto;
                left: auto;
                margin: 10px 0;
                float: left;
            }
            .block-search {
                float: none;
                margin-bottom: 0;
                .label {
                    float: left;
                    margin: 10px 0;
                    line-height: 40px;
                    margin-left: 15px;
                }
            }
            .custom-block {
                display: none;
            }
        }
        &.type2 {
            .logo {
                height: 40px;
                float: right;
                margin: 10px 0;
                img {
                    max-width: 100%;
                    max-height: 100%;
                    width: auto;
                }
            }
            .minicart-wrapper {
                position: relative;
                top: auto;
                right: auto;
                left: auto;
                margin: 10px 0;
                float: left;
            }
            .block-search {
                float: none;
                margin-bottom: 0;
                .label {
                    float: left;
                    margin: 10px 0;
                    line-height: 40px;
                    margin-left: 15px;
                    
                    &:before {
                        color: #fff;
                        cursor: pointer;
                    }
                }
            }
            .custom-block {
                display: none;
            }
            .nav-toggle:before {
                color: #fff;
            }
        }
        &.type3 {
            .logo {
                height: 40px;
                float: right;
                margin: 10px 0;
                img {
                    max-width: 100%;
                    max-height: 100%;
                    width: auto;
                }
            }
            .minicart-wrapper {
                position: relative;
                top: auto;
                right: auto;
                left: auto;
                margin: 0;
                float: left;
            }
            .search-toggle-icon {
                display: none;
            }
            .block-search {
                .label {
                    float: left;
                    margin-left: 30px;
                    margin-top: 15px;
                }
            }
            .bottom-panel {
                position: absolute;
                left: 10px;
                top: 10px;
            }
        }
        &.type4 {
            .logo {
                height: 40px;
                float: right;
                margin: 10px 0;
                img {
                    max-width: 100%;
                    max-height: 100%;
                    width: auto;
                }
            }
            .minicart-wrapper {
                position: relative;
                top: auto;
                right: auto;
                left: auto;
                margin: 0;
                float: left;
            }
            .search-toggle-icon {
                display: none;
            }
            .block-search {
                .label {
                    float: left;
                    margin-left: 40px;
                    margin-top: 15px;
                }
            }
            .header.panel {
                position: relative;
            }
            .bottom-panel {
                position: absolute;
                left: 10px;
                top: 10px;
            }
        }
        &.type5 {
            .logo {
                height: 40px;
                float: right;
                margin: 10px 0;
                img {
                    max-width: 100%;
                    max-height: 100%;
                    width: auto;
                }
            }
            .minicart-wrapper {
                position: relative;
                top: auto;
                right: auto;
                left: auto;
                margin: 10px 0;
                float: left;
            }
            .search-toggle-icon {
                display: none;
            }
            .block-search {
                .label {
                    float: left;
                    margin-left: 30px;
                    margin-top: 15px;
                }
            }
        }
        &.type6 {
            .logo {
                height: 40px;
                float: right;
                margin: 10px 0;
                img {
                    max-width: 100%;
                    max-height: 100%;
                    width: auto;
                }
            }
            .minicart-wrapper {
                position: relative;
                top: auto;
                right: auto;
                left: auto;
                margin: 10px 0;
                float: left;
            }
            .search-toggle-icon {
                display: none;
            }
            .block-search {
                .label {
                    float: left;
                    margin-left: 30px;
                    margin-top: 15px;
                }
            }
        }
        &.type7 {
            .logo {
                height: 40px;
                float: right;
                margin: 10px 0;
                img {
                    max-width: 100%;
                    max-height: 100%;
                    width: auto;
                }
            }
            .minicart-wrapper {
                position: absolute;
                top: auto;
                left: 15px;
                right: auto;
                margin: 10px 0;
                z-index: 1;
            }
            .panel.header {
                .custom-block {
                    display: none;
                }
                .toplinks-area {
                    display: none;
                }
                > span.split {
                    display: none;
                }
            }
            .search-toggle-icon {
                display: none;
            }
            .block-search {
                .label {
                    font-size: 11px;
                    text-transform: uppercase;
                    
                    &:before {
                        margin-left: 5px;
                        color: #777;
                        font-size: 11px;
                    }
                    > span {
                        width: auto;
                        height: auto;
                        position: static;
                    }
                }
            }
        }
        &.type8 {
            .logo {
                height: 40px;
                float: right;
                margin: 10px 0;
                img {
                    max-width: 100%;
                    max-height: 100%;
                    width: auto;
                }
            }
            .minicart-wrapper {
                position: relative;
                top: auto;
                right: auto;
                left: auto;
                margin: 10px 0;
                float: left;
            }
            .block-search {
                float: none;
                margin-bottom: 0;
                .label {
                    float: left;
                    margin: 10px 0;
                    line-height: 40px;
                    margin-left: 15px;
                }
            }
            .custom-block {
                display: none;
            }
            .sw-megamenu.navigation.side-megamenu {
                display: block;
            }
            .nav-toggle:before {
                color: #fff;
            }
            .custom-menu-block, .drop-menu > a {
                display: none;
            }
        }
        &.type9 {
            .logo {
                height: 40px;
                float: right;
                margin: 10px 0;
                img {
                    max-width: 100%;
                    max-height: 100%;
                    width: auto;
                }
            }
            .minicart-wrapper {
                position: relative;
                top: auto;
                right: auto;
                left: auto;
                margin: 0;
                float: left;
            }
            .search-toggle-icon {
                display: none;
            }
            .block-search {
                .label {
                    float: left;
                    margin-left: 30px;
                    margin-top: 15px;
                }
            }
            .bottom-panel {
                position: absolute;
                left: 10px;
                top: 10px;
            }
            .nav-toggle:before, .nav-toggle:hover:before, .block-search .label:before,.minicart-wrapper .action.showcart:before, .minicart-wrapper .action.showcart.active:before {
                color: #fff;
            }
            .minicart-wrapper .action.showcart .counter.qty {
                color: #000;
            }
        }
        &.type10 {
            border: 0;
            
            .custom-block-area {
                display: none;
            }
            .switcher-area {
                position: relative;
                z-index: 1;
                
                .switcher {
                    display: none;
                }
            }
            .logo {
                margin: 15px 0;
                
                img {
                    width: auto;
                    height: auto;
                }
            }
            .minicart-wrapper {
                float: left;
                margin-top: 20px;
                margin-left: 15px;
                
                .action.showcart {
                    &:before, &.active:before {
                        color: #fff;
                    }
                    .counter.qty {
                        color: #000;
                    }
                }
            }
            .block-search {
                float: left;
                margin: 26px;
                
                .label:before {
                    color: #fff;
                }
                
                .control {
                    margin: 0;
                    padding: 0;
                    position: absolute;
                    width: 300px;
                    left: 0;
                    top: 100%;
                    z-index: 1;
                }
            }
            .nav-toggle {
                margin: 10px 0 10px 15px;
                
                &:before {
                    color: #fff;
                }
            }
        }
        &.type11 {
            .logo {
                height: 40px;
                float: right;
                margin: 10px 0;
                img {
                    max-width: 100%;
                    max-height: 100%;
                    width: auto;
                }
            }
            .minicart-wrapper {
                position: relative;
                top: auto;
                right: auto;
                left: auto;
                margin: 10px 0;
                float: left;
            }
            .block-search {
                float: none;
                margin-bottom: 0;
                .label {
                    float: left;
                    margin: 10px 0;
                    line-height: 40px;
                    margin-left: 15px;
                }
            }
            .custom-block {
                display: none;
            }
        }
        &.type12 {
            .logo {
                height: 40px;
                float: right;
                margin: 10px 0;
                img {
                    max-width: 100%;
                    max-height: 100%;
                    width: auto;
                }
            }
            .minicart-wrapper {
                position: relative;
                top: auto;
                right: auto;
                left: auto;
                margin: 0;
                float: left;
            }
            .search-toggle-icon {
                display: none;
            }
            .block-search {
                .label {
                    float: left;
                    margin-left: 30px;
                    margin-top: 15px;
                }
            }
            .bottom-panel {
                position: absolute;
                left: 10px;
                top: 10px;
            }
            .nav-toggle:before, .nav-toggle:hover:before, .block-search .label:before,.minicart-wrapper .action.showcart:before, .minicart-wrapper .action.showcart.active:before {
                color: #000;
            }
            .minicart-wrapper .action.showcart .counter.qty {
                color: #fff;
            }
        }
    }
    
    .customer-name,
    .customer-welcome + .authorization-link {
        display: none;
    }
    .nav-sections .switcher-trigger strong:after {
        .lib-font-size(16);
        left: -25px;
        top: 2px;
    }
    .navigation .parent .level-top:after {
        .lib-font-size(22);
        left: 10px;
        top: 13px;
    }
    .mobile-sticky {
        header.page-header {
            position: fixed;
            width: 100%;
            top: 0;
            box-shadow: 0 0px 5px rgba(0,0,0,0.3);
        }
        .page-main {
            margin-top: 64px;
        }
    }
}

//
//  Common
//  _____________________________________________

& when (@media-common = true) {

    //
    //  Widgets
    //  ---------------------------------------------

    .sidebar {
        .widget.block:not(:last-child),
        .widget:not(:last-child) {
            margin-bottom: @indent__xl;
        }
    }

    .widget {
        clear: both;
        .block-title:extend(.abs-block-widget-title all) {
        }
    }
}

//
//  Desktop
//  _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
    html,
    body {
        min-height: 100%; //  Stretch screen area for sticky footer
    }

    body {
        .ie9 & {
            .lib-css(background-color, @copyright__background-color);
        }
    }
    .customer-menu .header.links a {
        color: #777 !important;
    }
    
    .sticky-logo {
        float: right;
    
        .logo {
            margin: 0 !important;
        
            img {
                height: 30px;
                width: auto;
                max-width: none;
                margin-left: 20px;
            }
        }
    }
    
    header.page-header.sticky-header {
        .nav-sections {
            position: fixed !important;
            right: 0 !important;
            top: 0 !important;
            z-index: 200 !important;
            margin: 0 !important;
            padding: 7px 0 !important;
            margin: 0 !important;
            width: 100% !important;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            pointer-events: all;
        }
        .navigation {
            padding: 0 15px;
            
            & > ul {
                background-color: transparent;
            }
            li.level0 {
                & > .level-top {
                    padding: 0 15px;
                    line-height: 30px;
                }
                &.parent > a:after {
                    line-height: 30px;
                }
                & > a > span.cat-label {
                    top: -9px;
                }
            }
        }
        .minicart-wrapper {
            position: absolute;
            left: 15px;
            top: 50%;
            margin-top: -20px;
        }
        
        &.type1 .nav-sections {
            background-color: #fff;
        }
        
        &.type2 .minicart-wrapper .action.showcart {
            &:before {
                color: #fff;
            }            
            .counter.qty {
                color: #000;
            }
        }
        &.type3 {
            .nav-sections {
                background-color: #1e1e1e;
            }
            .minicart-wrapper .action.showcart:before {
                color: #fff;
            }
        }
        &.type4 {
            .nav-sections {
                background-color: #1e1e1e;
            }
            .minicart-wrapper .action.showcart:before {
                color: #fff;
            }
        }
        &.type5 {
            .nav-sections {
                background-color: #fff;
            }
            .navigation > ul {
                padding-left: 70px;
                text-align: right;
            }
            .minicart-wrapper {
                margin-top: -25px;
            }
        }
        &.type6 {
            .nav-sections {
                background-color: #fff;
            }
            .minicart-wrapper {
                margin-top: -25px;
            }
        }
        &.type7 {
            .nav-sections {
                background-color: #fff;
            }
            .logo {
                display: block;
            }
            .navigation > ul > li {
                float: none !important;
            }
            .minicart-wrapper {
                margin-top: -10px;
            }
        }
        &.type9 {
            .nav-sections {
                background-color: #5c616e;
            }
            .minicart-wrapper .action.showcart {
                &:before {
                    color: #fff;
                }
                .counter.qty {
                    color: #000;
                }
            }
        }
        &.type11 {
            .nav-sections {
                background-color: #fff;
            }
            .navigation {
                text-align: right;
            }
        }
        &.type12 {
            .header.content {
                padding: 0 200px 0 50px;
            }
            .nav-sections {
                background-color: #5c616e;
            }
            .minicart-wrapper .action.showcart {
                &:before {
                    color: #fff;
                }
                .counter.qty {
                    color: #000;
                }
            }
        }
    }
    .page-header {
        margin-bottom: 0;
        .panel.wrapper {
            .lib-css(background-color, @header-panel__background-color);
        }
        .header.panel:extend(.abs-add-clearfix-desktop all) {
            padding-bottom: 11px;
            padding-top: 10px;
        }
        .switcher {
            float: right;
            margin-left: 15px;
            .lib-vendor-prefix-order(1);
        }
        .navigation {
            .level0 {
                & > .level-top {
                    text-transform: uppercase;
                    display: inline-block;
                }
                &.parent > a:after {
                    content: @icon-down-open;
                    display: inline-block;
                    font-family: @icons__font-name;
                    vertical-align: top;
                    margin-right: 6px;
                    line-height: 42px;
                }
                .submenu {
                    border-top-width: 5px;
                    padding: 6px 8px;
                    box-shadow: 0 0 3px rgba(0,0,0,0.25);
                    border-radius: 6px 0 6px 6px;
                    li {
                        margin-bottom: 0;
                        position: relative;
                    }
                    .submenu {
                        border-top-width: 0;
                        margin-top: -6px !important;
                        margin-right: 8px !important;
                    }
                    li.parent > a:after {
                        content: @icon-right-open;
                        display: inline-block;
                        font-family: @icons__font-name;
                        vertical-align: top;
                        margin-right: 6px;
                        margin-left: 5px;
                        line-height: 15px;
                        float: left;
                    }
                    .active > a {
                        border: 0;
                    }
                }
            }
        }
        &.type1 {
            background-color: @header__type1_background-color;
            color: @header__type1_text-color;
            
            & > .panel.wrapper {
                background-color: @header__type1_top_panel_background-color;
                color: @header__type1_top_panel_text-color;
            }
            .panel.header {
                .switcher {
                    border-right: 1px solid @header__type1_top_link_split-color;
                    padding: 0 15px;
                    &:first-child {
                        border-right: 0;
                        padding-right: 0;
                    }
                    &:last-child {
                        padding-left: 0;
                    }
                }
                .header.links {
                    > li {
                        > a {
                            color: @header__type1_top_panel_link-color;
                            &:hover {
                                color: @header__type1_top_panel_link-hover-color;
                            }
                        }
                    }
                }
            }
            .nav-sections {
                background-color: transparent;
                color: @header__type1_nav_text-color;
                margin-bottom: 15px;
            }
            
            .navigation {
                background-color: transparent;
                padding: 0 15px;
                & > ul {
                    padding: 0;
                    background-color: @header__type1_nav_background-color;
                    border-radius: 5px;
                }
                li.level0 {
                    margin-left: 3px;
                    color: @header__type1_nav_link-color;
                    &.last {
                        margin-left: 0;
                    }
                    & > .level-top {
                        color: inherit;
                        padding: 0 20px;
                        line-height: 40px;
                        &:focus {
                            color: inherit;
                        }
                        &:hover {
                            color: inherit;
                        }
                    }
                    &.active, &:hover {
                        border-radius: 5px;
                        color: @header__type1_nav_link-hover-color;
                        background-color: @header__type1_nav_link-hover-background-color;
                    }
                    &.parent:hover {
                        border-radius: 5px 5px 0 0;
                    }
                    &.parent > a:after{
                        line-height: 40px;
                    }
                }
            }
            .block-search {
                margin-right: 55px;
                
                input {
                    background-color: @header__type1_search_box_background-color;
                    color: @header__type1_search_box_text-color;
                    border-color: @header__type1_search_box_border-color;
                }
                .action.search {
                    &:focus {
                        &:before {
                            .lib-css(color, @header__type1_search_box_button-font-color);
                        }
                    }
                    &:before, &:hover:before {
                        color: @header__type1_search_box_button-font-color;
                    }
                    &:hover {
                        border-right-width: 1px;
                    }
                    border-right: 1px solid @header__type1_search_box_border-color;
                    padding: 0 13px;
                }
            }
            .custom-block {
                height: 40px;
                line-height: 40px;
                position: absolute;
                top: 50%;
                left: 60px;
                margin-top: -20px;
                font-size: 14px;
                color: @header__type1_text-color;
                & > * {
                    display: inline-block;
                    vertical-align: middle;
                }
                & > a {
                    font-size: 12px;
                }
            }
        }
        &.type2 {
            background-color: @header__type2_background-color;
            color: @header__type2_text-color;
            border-top: 0;
            
            & > .panel.wrapper {
                background-color: @header__type2_top_panel_background-color;
                color: @header__type2_top_panel_text-color;
            }
            
            .panel.header {
                .switcher {
                    border-right: 1px solid @header__type2_top_link_split-color;
                    padding: 0 15px;
                    text-transform: uppercase;
                    
                    &:first-child {
                        border-right: 0;
                        padding-right: 0;
                    }
                    &:last-child {
                        padding-left: 0;
                    }
                }
                .header.links {
                    > li {
                        > a {
                            color: @header__type2_top_panel_link-color;
                            &:hover {
                                color: @header__type2_top_panel_link-hover-color;
                            }
                        }
                    }
                }
            }
            .customer-welcome .action.switch {
                color: #fff;
            }
            .nav-sections {
                background-color: @header__type2_nav_background-color;
                color: @header__type2_nav_text-color;
            }
            
            .navigation {
                .level0 {
                    &.parent > a:after {
                        line-height: 46px;
                    }
                    & > .level-top {
                        color: @header__type2_nav_link-color;
                        font-weight: 700;
                    }
                }
            }
            .block-search {
                input {
                    background-color: @header__type2_search_box_background-color;
                    color: @header__type2_search_box_text-color;
                }
                .action.search {
                    &:focus {
                        &:before {
                            .lib-css(color, @header__type2_search_box_button-font-color);
                        }
                    }
                    &:before, &:hover:before {
                        color: @header__type2_search_box_button-font-color;
                    }
                    &:hover {
                        border-right-width: 1px;
                    }
                    border-right: 1px solid @header__type2_search_box_border-color;
                    padding: 0 12px;
                }
            }
            .custom-block {
                height: 40px;
                line-height: 40px;
                position: absolute;
                top: 50%;
                left: 60px;
                margin-top: -20px;
                font-size: 14px;
                color: @header__type2_text-color;
                & > * {
                    display: inline-block;
                    vertical-align: middle;
                }
                & > a {
                    font-size: 12px;
                    color: @header__type2_link-color;
                }
            }
        }
        &.type3 {
            .nav-sections {
                display: block;
                margin: 32px 0 0;
                z-index: 6;
                position: relative;
                pointer-events: none;
                
                .navigation li.level0 {
                    pointer-events: all;
                }
            }
            
            .header.panel {
                text-align: left;
                position: absolute;
                left: 0;
                top: 50%;
                margin-top: -32px;
                z-index: 5;
                padding: 0 15px;
                
                .top-panel {
                    margin-bottom: 15px;
                }
                .top-panel>.links {
                    padding: 0;
                    list-style: none;
                    
                    > li {
                        display: block;
                        float: right;
                        color: @header__type3_top_panel_text-color;
                        margin: 0;
                        
                        > a {
                            color: @header__type3_top_panel_link-color;
                            
                            &:hover {
                                color: @header__type3_top_panel_link-hover-color;
                            }
                        }
                        > a, > span {
                            padding: 0 15px;
                            border-left: 1px solid @header__type3_top_link_split-color;
                            text-transform: uppercase;
                            font-size: 11px;
                        }
                        &:first-child {
                            > a, > span {
                                padding-right: 0;
                                border-right: 0;
                            }
                        }
                    }
                }
                .search-area {
                    display: inline-block;
                    vertical-align: middle;
                    padding-right: 15px;
                    position: relative;
                    
                    > a {
                        color: @header__type3_top_panel_link-color;
                        
                        &:hover {
                            color: @header__type3_top_panel_link-hover-color;
                        }
                    }
                }
                .block-search {
                    display: none;
                    position: absolute;
                    left: -20px;
                    top: 100%;
                    margin-top: 20px;
                    
                    &:before {
                        content: "";
                        display: block;
                        position: absolute;
                        top: -20px;
                        left: 20px;
                        border: 10px solid transparent;
                        border-bottom-color: #ccc;
                    }
                    
                    input {
                        height: 45px;
                        border-radius: 25px;
                        border: 5px solid #ccc;
                    }
                    
                    .action.search {
                        left: 5px;
                        height: 45px;
                        border-right: 1px solid #ccc;
                        width: 40px;
                        
                        &:before {
                            color: @theme-color;
                        }
                    }
                }
                .switcher {
                    float: none;
                    padding: 5px 10px;
                    background-color: @header-type3-minicart__background_color;
                    height: 26px;
                    border-radius: 3px;
                    color: @header-type3-minicart__qty_color;
                    text-transform: uppercase;
                    text-align: right;
                }
                .minicart-wrapper {
                    display: inline-block;
                    position: relative;
                    padding: 5px 10px;
                    background-color: @header-type3-minicart__background_color;
                    vertical-align: middle;
                    border-radius: 3px;
                    
                    .action.showcart {
                        display: block;
                        margin-top: -2px;
                        
                        &:before, &.active:before {
                            color: @header-type3-minicart__icon_color;
                            line-height: 14px;
                            font-size: 14px;
                            overflow: visible;
                            vertical-align: middle;
                        }
                        .counter.qty {
                            position: static;
                            vertical-align: middle;
                            margin: 0;
                            padding: 0;
                            font-size: 11px;
                            height: auto;
                            line-height: 14px;
                            width: auto;
                            min-width: 0;
                            margin-left: 5px;
                            color: @header-type3-minicart__qty_color;
                        }
                        .counter-label {
                            display: inline-block;
                            position: static;
                            overflow: visible;
                            width: auto;
                        }
                    }
                }
            }
            .navigation {
                .level0 {
                    > .level-top {
                        color: @header__type3_nav_link-color;
                        line-height: 32px;
                        display: inline-block;
                        font-weight: 600;
                    }
                    &.active, &.has-active {
                        > .level-top {
                            color: @header__type3_nav_link-hover-color;
                            background-color: @header__type3_nav_link-hover-background-color;
                            border-radius: 5px;
                        }
                    }
                    &.parent {
                        > a:after {
                            line-height: 32px;
                        }
                        &:hover {
                            > .level-top {
                                border-radius: 5px 5px 0 0;
                            }
                        }
                    }
                    &:hover {
                        > .level-top {
                            color: @header__type3_nav_link-hover-color;
                            background-color: @header__type3_nav_link-hover-background-color;
                            border-radius: 5px;
                        }
                    }
                }
            }
        }
        &.type4 {
            text-align: center;
            
            .logo {
                float: none;
                display: inline-block;
                margin: 20px 0;
            }
            
            .nav-sections {
                display: block;
                position: absolute;
                right: 0;
                top: 50%;
                margin-top: -16px;
                width: 100%;
            }
            
            .navigation {
                text-align: right;
                
                > ul {
                    padding-left: 60%;
                }
            }
            
            .header.panel {
                text-align: left;
                position: absolute;
                left: 0;
                top: 50%;
                margin-top: -16px;
                z-index: 5;
                padding: 0 15px;
                
                .top-panel {
                    margin: 5px 0;
                }
                .top-panel>.links {
                    padding: 0;
                    list-style: none;
                    
                    > li {
                        display: block;
                        float: right;
                        color: @header__type4_top_panel_text-color;
                        margin: 0;
                        
                        > a {
                            color: @header__type4_top_panel_link-color;
                            
                            &:hover {
                                color: @header__type4_top_panel_link-hover-color;
                            }
                        }
                        > a, > span {
                            padding: 0 15px;
                            border-right: 1px solid @header__type4_top_link_split-color;
                            text-transform: uppercase;
                            font-size: 11px;
                        }
                        &:first-child {
                            > a, > span {
                                padding-right: 0;
                                border-right: 0;
                            }
                        }
                    }
                }
                .search-area {
                    display: inline-block;
                    vertical-align: middle;
                    padding-right: 15px;
                    position: relative;
                    
                    > a {
                        color: @header__type4_top_panel_link-color;
                        
                        &:hover {
                            color: @header__type4_top_panel_link-hover-color;
                        }
                    }
                }
                .block-search {
                    display: none;
                    position: absolute;
                    left: -20px;
                    top: 100%;
                    margin-top: 20px;
                    
                    &:before {
                        content: "";
                        display: block;
                        position: absolute;
                        top: -20px;
                        left: 20px;
                        border: 10px solid transparent;
                        border-bottom-color: #ccc;
                    }
                    
                    input {
                        height: 45px;
                        border-radius: 25px;
                        border: 5px solid #ccc;
                    }
                    
                    .action.search {
                        left: 5px;
                        height: 45px;
                        border-right: 1px solid #ccc;
                        width: 40px;
                        
                        &:before {
                            color: @theme-color;
                        }
                    }
                }
                .switcher {
                    float: none;
                    padding: 5px 10px;
                    background-color: @header-type4-minicart__background_color;
                    height: 26px;
                    border-radius: 3px;
                    color: @header-type4-minicart__qty_color;
                    text-transform: uppercase;
                    text-align: right;
                }
                .minicart-wrapper {
                    display: inline-block;
                    position: relative;
                    padding: 5px 10px;
                    background-color: @header-type4-minicart__background_color;
                    vertical-align: middle;
                    border-radius: 3px;
                    
                    .action.showcart {
                        display: block;
                        margin-top: -2px;
                        
                        &:before, &.active:before {
                            color: @header-type4-minicart__icon_color;
                            line-height: 14px;
                            font-size: 14px;
                            overflow: visible;
                            vertical-align: middle;
                        }
                        .counter.qty {
                            position: static;
                            vertical-align: middle;
                            margin: 0;
                            padding: 0;
                            font-size: 11px;
                            height: auto;
                            line-height: 14px;
                            width: auto;
                            min-width: 0;
                            margin-left: 5px;
                            color: @header-type4-minicart__qty_color;
                        }
                        .counter-label {
                            display: inline-block;
                            position: static;
                            overflow: visible;
                            width: auto;
                        }
                    }
                }
            }
            .navigation {
                .level0 {
                    > .level-top {
                        color: @header__type4_nav_link-color;
                        line-height: 32px;
                        display: inline-block;
                        transition-delay: 0.3s;
                    }
                    &.active, &.has-active {
                        > .level-top {
                            color: @header__type4_nav_link-hover-color;
                            background-color: @header__type4_nav_link-hover-background-color;
                            border-radius: 5px;
                        }
                    }
                    &.parent {
                        > a:after {
                            line-height: 32px;
                        }
                        &:hover {
                            > .level-top {
                                border-radius: 5px 5px 0 0;
                            }
                        }
                    }
                    &:hover {
                        > .level-top {
                            color: @header__type4_nav_link-hover-color;
                            background-color: @header__type4_nav_link-hover-background-color;
                            border-radius: 5px;
                        }
                    }
                }
            }
        }
        &.type5 {
            border-top: 0;
            
            .panel.header {
                .switcher {
                    padding: 0 15px;
                    border-right: 1px solid #ccc;
                }
            }
            .header.content {
                display: block;
                vertical-align: middle;
                padding: 28px 15px;
            }
            .logo {
                float: right;
                display: block;
                margin: 0 0 0 25px;
            }
            .search-area {
                position: relative;
                margin: 0;
                display: block;
                float: left;
                top: 0;
                right: 0;
                height: 50px;
                z-index: 2;
                
                > a {
                    color: @header-type5-minicart__icon_color;
                    line-height: 50px;
                    display: block;
                    margin-left: 10px;
                    margin-right: 20px;
                    width: 25px;
                    text-align: center;
                    
                    &:hover {
                        color: @header-type5-minicart__icon_color;
                    }
                }
            }
            .block-search {
                display: none;
                position: absolute;
                left: -20px;
                top: 100%;
                margin-top: 20px;
                
                &:before {
                    content: "";
                    display: block;
                    position: absolute;
                    top: -20px;
                    left: 20px;
                    border: 10px solid transparent;
                    border-bottom-color: #ccc;
                }
                
                input {
                    height: 45px;
                    border-radius: 25px;
                    border: 5px solid #ccc;
                }
                
                .action.search {
                    left: 5px;
                    height: 45px;
                    border-right: 1px solid #ccc;
                    width: 40px;
                    
                    &:before {
                        color: @theme-color;
                    }
                }
            }
            .minicart-wrapper {
                position: relative;
                top: 0;
                margin: 0;
                float: left;
                height: 50px;
                left: 0;
                padding: 5px 0;
                
                .action.showcart {
                    display: block;
                    
                    &:before, &.active:before {
                        color: @header-type5-minicart__icon_color;
                        line-height: 40px;
                        font-size: 18px;
                        overflow: visible;
                        vertical-align: middle;
                    }
                    .counter.qty {
                        position: static;
                        vertical-align: middle;
                        margin: 0;
                        padding: 0;
                        font-size: 11px;
                        font-weight: 400;
                        height: auto;
                        line-height: 40px;
                        text-transform: uppercase;
                        width: auto;
                        min-width: 0;
                        color: @header-type5-minicart__qty_color;
                    }
                    .counter-label {
                        display: inline-block;
                        position: static;
                        overflow: visible;
                        width: auto;
                        margin: 0;
                    }
                }
            }
            .nav-sections {
                pointer-events: none;
            }
            .navigation {
                padding: 10px 0;
                
                > ul {
                    text-align: left;
                    
                    > li {
                        pointer-events: all;
                        text-align: right;
                    }
                }
                .level0 {
                    > .level-top {
                        color: @header__type5_nav_link-color;
                        line-height: 30px;
                        display: inline-block;
                        transition-delay: 0.3s;
                    }
                    &.active, &.has-active {
                        > .level-top {
                            color: @header__type5_nav_link-hover-color;
                            background-color: @header__type5_nav_link-hover-background-color;
                            border-radius: 5px;
                        }
                    }
                    &.parent {
                        > a:after {
                            line-height: 30px;
                        }
                        &:hover {
                            > .level-top {
                                border-radius: 5px 5px 0 0;
                            }
                        }
                    }
                    &:hover {
                        > .level-top {
                            color: @header__type5_nav_link-hover-color;
                            background-color: @header__type5_nav_link-hover-background-color;
                            border-radius: 5px;
                        }
                    }
                }
            }
        }
        &.type6 {
            .panel.header {
                .switcher {
                    padding: 0 15px;
                    border-right: 1px solid #ccc;
                }
            }
            .header.content {
                display: block;
                vertical-align: middle;
                padding: 28px 15px;
            }
            .logo {
                float: right;
                display: block;
                margin: 0 0 0 25px;
            }
            .custom-block {
                float: left;
                line-height: 50px;
                margin-left: 10px;
            }
            .search-area {
                position: relative;
                margin: 0;
                display: block;
                float: right;
                top: 0;
                right: 0;
                height: 50px;
                z-index: 2;
                
                > a {
                    color: @header-type6-minicart__icon_color;
                    line-height: 50px;
                    display: block;
                    margin-left: 10px;
                    width: 25px;
                    text-align: center;
                    
                    &:hover {
                        color: @header-type6-minicart__icon_color;
                    }
                }
            }
            .block-search {
                display: none;
                position: absolute;
                right: -20px;
                top: 100%;
                margin: 0;
                
                &:before {
                    content: "";
                    display: block;
                    position: absolute;
                    top: -20px;
                    right: 20px;
                    border: 10px solid transparent;
                    border-bottom-color: #ccc;
                }
                
                input {
                    height: 45px;
                    border-radius: 25px;
                    border: 5px solid #ccc;
                }
                
                .action.search {
                    left: 5px;
                    height: 45px;
                    border-right: 1px solid #ccc;
                    width: 40px;
                    
                    &:before {
                        color: @theme-color;
                    }
                }
            }
            .minicart-wrapper {
                position: relative;
                top: 0;
                margin: 0;
                float: left;
                height: 50px;
                left: 0;
                padding: 5px 0;
                
                .action.showcart {
                    display: block;
                    
                    &:before, &.active:before {
                        color: @header-type6-minicart__icon_color;
                    }
                    .counter-label {
                        display: none;
                    }
                }
            }
            .nav-sections {
                pointer-events: none;
            }
            .navigation {
                padding: 10px 0;
                
                > ul {
                    text-align: right;
                    
                    > li {
                        pointer-events: all;
                        text-align: right;
                    }
                }
                .level0 {
                    > .level-top {
                        color: @header__type6_nav_link-color;
                        line-height: 30px;
                        display: inline-block;
                        transition-delay: 0.3s;
                    }
                    &.active, &.has-active {
                        > .level-top {
                            color: @header__type6_nav_link-hover-color;
                            background-color: @header__type6_nav_link-hover-background-color;
                            border-radius: 5px;
                        }
                    }
                    &.parent {
                        > a:after {
                            line-height: 30px;
                        }
                        &:hover {
                            > .level-top {
                                border-radius: 5px 5px 0 0;
                            }
                        }
                    }
                    &:hover {
                        > .level-top {
                            color: @header__type6_nav_link-hover-color;
                            background-color: @header__type6_nav_link-hover-background-color;
                            border-radius: 5px;
                        }
                    }
                }
            }
        }
        &.type7 {
            border-top: 0;
            
            .panel.header {
                .switcher {
                    padding: 0 15px;
                    border-right: 1px solid #ccc;
                }
                .custom-block {
                    float: left;
                    font-size: 11px;
                }
                .toplinks-area {
                    float: left;
                    font-size: 11px;
                    position: relative;
                    > a {
                        text-transform: uppercase;
                    }
                    > ul {
                        position: absolute;
                        right: 0;
                        top: 100%;
                        min-width: 150px;
                        padding: 0;
                        list-style: none;
                        display: none;
                    }
                }
                > span.split {
                    float: left;
                    height: 15px;
                }
            }
            .header.content {
                display: block;
                padding: 28px 15px;
                text-align: center;
            }
            .logo {
                display: inline-block;
                margin: 0;
            }
            .search-area {
                position: relative;
                margin: 0;
                display: block;
                float: right;
                z-index: 10;
                
                > a {
                    display: block;
                    margin-left: 15px;
                    text-align: center;
                    font-size: 11px;
                    text-transform: uppercase;
                    color: #777;
                    
                    &:hover {
                        text-decoration: none;
                    }                    
                    em {
                        margin-left: 5px;
                    }
                }
            }
            .block-search {
                display: none;
                position: absolute;
                right: -20px;
                top: 100%;
                margin: 0;
                margin-top: 20px;
                
                &:before {
                    content: "";
                    display: block;
                    position: absolute;
                    top: -20px;
                    right: 20px;
                    border: 10px solid transparent;
                    border-bottom-color: #ccc;
                }
                
                input {
                    height: 45px;
                    border-radius: 25px;
                    border: 5px solid #ccc;
                }
                
                .action.search {
                    left: 5px;
                    height: 45px;
                    border-right: 1px solid #ccc;
                    width: 40px;
                }
            }
            .minicart-wrapper {
                position: relative;
                margin: 0;
                float: left;
                
                .action.showcart {
                    display: block;
                    line-height: 15px;
                    
                    &:before, &.active:before {
                        line-height: 15px;
                        font-size: 14px;
                        overflow: visible;
                        vertical-align: middle;
                    }
                    .counter.qty {
                        position: static;
                        vertical-align: middle;
                        margin: 0;
                        padding: 0;
                        font-size: 11px;
                        font-weight: 400;
                        height: auto;
                        line-height: 15px;
                        text-transform: uppercase;
                        width: auto;
                        min-width: 0;
                    }
                    .counter-label {
                        display: inline-block;
                        position: static;
                        overflow: visible;
                        width: auto;
                        margin: 0;
                    }
                }
            }
            .nav-sections {
                pointer-events: none;
                position: absolute;
                top: 50%;
                margin-top: -25px;
                width: 100%;
                right: 0;
                padding-right: 15px;
                padding-left: 6px;
            }
            .navigation {
                padding: 10px 0;
                
                > ul {
                    text-align: right;
                    
                    > li {
                        pointer-events: all;
                        text-align: left;
                    }
                }
                .level0 {
                    > .level-top {
                        color: @header__type5_nav_link-color;
                        line-height: 30px;
                        display: inline-block;
                        transition-delay: 0.3s;
                    }
                    &.active, &.has-active {
                        > .level-top {
                            color: @header__type5_nav_link-hover-color;
                            background-color: @header__type5_nav_link-hover-background-color;
                            border-radius: 5px;
                        }
                    }
                    &.parent {
                        > a:after {
                            line-height: 30px;
                        }
                        &:hover {
                            > .level-top {
                                border-radius: 5px 5px 0 0;
                            }
                        }
                    }
                    &:hover {
                        > .level-top {
                            color: @header__type5_nav_link-hover-color;
                            background-color: @header__type5_nav_link-hover-background-color;
                            border-radius: 5px;
                        }
                    }
                }
            }
        }
        &.type8 {
            background-color: transparent;
            color: #777;
            border: 0;
            
            & > .panel.wrapper {
                background-color: transparent;
                color: #777;
            }
            .panel.header {
                .switcher {
                    border-right: 1px solid #ccc;
                    padding: 0 15px;
                    &:first-child {
                        border-right: 0;
                        padding-right: 0;
                    }
                    &:last-child {
                        padding-left: 0;
                    }
                }
                .header.links {
                    > li {
                        > a {
                            color: #777;
                            &:hover {
                                color: #777;
                            }
                        }
                    }
                }
            }
            .menu-wrapper {
                position: relative;
                background-color: #fff;
                border-bottom: 1px solid #eee;
            }
            .block-search {
                input {
                    background-color: #fff;
                    color: #777;
                    border-color: #ccc;
                    height: 32px;
                }
                .action.search {
                    &:focus {
                        &:before {
                            .lib-css(color, #777);
                        }
                    }
                    &:before, &:hover:before {
                        color: #777;
                    }
                    &:hover {
                        border-right-width: 1px;
                    }
                    border-right: 1px solid #ccc;
                    padding: 0 10px;
                    height: 32px;
                    line-height: 32px;
                }
            }
            .custom-block {
                height: 40px;
                line-height: 40px;
                position: absolute;
                top: 50%;
                left: 60px;
                margin-top: -20px;
                font-size: 14px;
                color: #fff;
                & > * {
                    display: inline-block;
                    vertical-align: middle;
                    color: #fff;
                }
                & > a {
                    font-size: 12px;
                }
            }
            .nav-sections {
                transition: 0.3s all;
                
                &.visible {
                    visibility: visible;
                    opacity: 1;
                }
            }
            &.sticky-header {
                .menu-container {
                    position: fixed;
                    width: 100%;
                    top: 0;
                    right: 0;
                    z-index: 200;
                    background-color: #fff;
                    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
                }
                .menu-wrapper {
                    position: relative;
                }
                .navigation {
                    padding: 0;
                    
                    li.level0 {
                        & > .level-top {
                            padding: 0 5px;
                            line-height: 41px;
                        }
                        &.parent > a:after {
                            line-height: 41px;
                        }
                        & > a > span.cat-label {
                            top: -1px;
                        }
                    }
                }
                .sticky-logo {
                    margin-right: 15px;
                    
                    .logo img {
                        margin-top: 5px;
                        margin-left: 0;
                    }
                }
                .nav-sections {
                    position: absolute !important;
                    top: 100% !important;
                    right: 15px !important;
                    width: 100% !important;
                    width: calc(~"100% - 30px") !important;
                    box-shadow: 0 0 20px rgba(0,0,0,0.4);
                    padding: 0 !important;
                }
                .minicart-wrapper {
                    .action.showcart {
                        &:before, &.active:before {
                            color: #000;
                        }
                        .counter.qty {
                            color: #fff;
                        }
                    }
                }
            }
        }
        &.type9 {
            .nav-sections {
                display: block;
                margin: 38px 0 0;
                z-index: 6;
                position: relative;
            }
            
            .header.panel {
                text-align: left;
                position: absolute;
                left: 30px;
                top: 50%;
                padding: 0 15px;
                margin-top: -32px;
                z-index: 5;
                
                .top-panel {
                    display: block;
                    margin-bottom: 18px;
                }
                .top-panel>.links {
                    padding: 0;
                    list-style: none;
                    
                    > li {
                        display: block;
                        float: right;
                        color: #fff;
                        margin: 0;
                        
                        > a {
                            color: #fff;
                            
                            &:hover {
                                color: #fff;
                            }
                        }
                        > a, > span {
                            padding: 0 15px;
                            border-left: 1px solid #ccc;
                            text-transform: uppercase;
                            font-size: 11px;
                        }
                        &:first-child {
                            > a, > span {
                                padding-right: 0;
                                border-right: 0;
                            }
                        }
                    }
                }
                .bottom-panel {
                    display: inline-block;
                    vertical-align: middle;
                    margin-right: 15px;
                }
                .search-area {
                    display: inline-block;
                    vertical-align: middle;
                    padding-right: 15px;
                    position: relative;
                    
                    > a {
                        color: @header__type3_top_panel_link-color;
                        
                        &:hover {
                            color: @header__type3_top_panel_link-hover-color;
                        }
                    }
                }
                .block-search {
                    display: none;
                    position: absolute;
                    left: -20px;
                    top: 100%;
                    margin-top: 20px;
                    
                    &:before {
                        content: "";
                        display: block;
                        position: absolute;
                        top: -20px;
                        left: 20px;
                        border: 10px solid transparent;
                        border-bottom-color: #ccc;
                    }
                    
                    input {
                        height: 45px;
                        border-radius: 25px;
                        border: 5px solid #ccc;
                    }
                    
                    .action.search {
                        left: 5px;
                        height: 45px;
                        border-right: 1px solid #ccc;
                        width: 40px;
                        
                        &:before {
                            color: @theme-color;
                        }
                    }
                }
                .switcher {
                    float: none;
                    padding: 5px 10px;
                    background-color: #fff;
                    height: 26px;
                    border-radius: 3px;
                    color: #101010;
                    text-transform: uppercase;
                    text-align: right;
                }
                .minicart-wrapper {
                    display: inline-block;
                    position: relative;
                    padding: 5px 10px;
                    background-color: #fff;
                    vertical-align: middle;
                    border-radius: 3px;
                    
                    .action.showcart {
                        display: block;
                        margin-top: -2px;
                        
                        &:before, &.active:before {
                            color: #101010;
                            line-height: 14px;
                            font-size: 14px;
                            overflow: visible;
                            vertical-align: middle;
                        }
                        .counter.qty {
                            position: static;
                            vertical-align: middle;
                            margin: 0;
                            padding: 0;
                            font-size: 11px;
                            height: auto;
                            line-height: 14px;
                            width: auto;
                            min-width: 0;
                            margin-right: 5px;
                            color: #101010;
                        }
                        .counter-label {
                            display: inline-block;
                            position: static;
                            overflow: visible;
                            width: auto;
                        }
                    }
                }
            }
            .navigation {
                
                .level0 {
                    > .level-top {
                        color: #fff;
                        line-height: 32px;
                        display: inline-block;
                    }
                    &.active, &.has-active {
                        > .level-top {
                            color: #fff;
                            background-color: transparent;
                            border-radius: 5px;
                        }
                    }
                    &.parent {
                        > a:after {
                            line-height: 32px;
                        }
                        &:hover {
                            > .level-top {
                                border-radius: 5px 5px 0 0;
                            }
                        }
                    }
                    &:hover {
                        > .level-top {
                            color: #fff;
                            background-color: transparent;
                            border-radius: 5px;
                        }
                    }
                }
            }
        }
        &.type10 {
            position: absolute;
            right: 0;
            top: 0;
            z-index: 2;
            width: 256px;
            min-height: 100vh;
            background-color: #383734;
            text-align: center;
            border: 0;
            padding: 5px 0 200px;
            text-align: center;
            
            .logo {
                max-width: none;
            }
            .switcher-area {
                .switcher {
                    float: none;
                    padding: 5px 10px;
                    background-color: #101010;
                    height: 26px;
                    border-radius: 3px;
                    color: #fff;
                    text-transform: uppercase;
                    text-align: left;
                    display: inline-block;
                    vertical-align: middle;
                    margin: 5px 2px;
                }
                .minicart-wrapper {
                    display: inline-block;
                    position: relative;
                    padding: 5px 10px;
                    margin: 5px 2px;
                    background-color: #101010;
                    vertical-align: middle;
                    border-radius: 3px;
                    
                    .action.showcart {
                        display: block;
                        margin-top: -2px;
                        
                        &:before, &.active:before {
                            color: #fff;
                            line-height: 14px;
                            font-size: 14px;
                            overflow: visible;
                            vertical-align: middle;
                        }
                        .counter.qty {
                            position: static;
                            vertical-align: middle;
                            margin: 0;
                            padding: 0;
                            font-size: 11px;
                            height: auto;
                            line-height: 14px;
                            width: auto;
                            min-width: 0;
                            margin-right: 5px;
                            color: #fff;
                        }
                        .counter-label {
                            display: inline-block;
                            position: static;
                            overflow: visible;
                            width: auto;
                        }
                    }
                }
            }
            .sw-megamenu.navigation.side-megamenu {
                text-align: right;
                
                li.level0 {
                    & > a {
                        margin: 0;
                        color: #fff;
                        border-top-color: #575757;
                        text-transform: none;
                    }
                    &:hover > a {
                        border-top-color: #575757;
                    }
                }
            }
            .block-search {
                margin: 20px 0;
                max-width: 100%;
                
                input {
                    border-radius: 5px;
                    padding: 10px 10px 10px 40px;
                }
                .action.search {
                    width: 40px;
                    left: 0;
                }
            }
            .panel.wrapper {
                background-color: transparent;
                text-align: right;
            }
            .custom-block-area {
                position: absolute;
                width: 100%;
                bottom: 0;
                right: 0;
                padding: 20px 10px;
                
                .social-icons {
                    padding: 0;
                }
                address {
                    margin: 0;
                }
            }
        }
        &.type11 {
            background-color: @header__type1_background-color;
            color: @header__type1_text-color;
            border-top-width: 5px;
            
            .logo {
                margin: 20px 0;
            }
            .header.content {
                text-align: center;
            }
            & > .panel.wrapper {
                background-color: @header__type1_top_panel_background-color;
                color: @header__type1_top_panel_text-color;
            }
            .panel.header {
                .switcher {
                    border-right: 1px solid @header__type1_top_link_split-color;
                    padding: 0 15px;
                    &:first-child {
                        border-left: 0;
                        padding-right: 0;
                    }
                    &:last-child {
                        padding-left: 0;
                    }
                }
                .header.links {
                    > li {
                        > a {
                            color: @header__type1_top_panel_link-color;
                            &:hover {
                                color: @header__type1_top_panel_link-hover-color;
                            }
                        }
                    }
                }
            }
            .nav-sections {
                background-color: transparent;
                color: @header__type1_nav_text-color;
                margin-bottom: 15px;
            }
            
            .navigation {
                background-color: transparent;
                padding: 0 15px;
                text-align: center;
                
                & > ul {
                    padding: 0;
                    background-color: transparent;
                    border-radius: 5px;
                    
                    li {
                        text-align: right;
                    }
                }
                li.level0 {
                    margin-left: 3px;
                    color: #08c;
                    &.last {
                        margin-left: 0;
                    }
                    & > .level-top {
                        color: inherit;
                        padding: 0 20px;
                        line-height: 40px;
                    }
                    &:hover {
                        & > .level-top {
                            color: inherit;
                        }                        
                    }
                    &.active, &:hover {
                        border-radius: 5px;
                        color: #fff;
                        background-color: #08c;
                    }
                    &.parent:hover {
                        border-radius: 5px 5px 0 0;
                    }
                    &.parent > a:after{
                        line-height: 40px;
                    }
                }
            }
            .block-search {
                margin: 0;
                position: absolute;
                right: 15px;
                top: 50%;
                margin-top: -20px;
                width: 300px;
                
                input {
                    background-color: #fff;
                    color: #777;
                    border-color: #ccc;
                    height: 36px;
                }
                .action.search {
                    &:focus {
                        &:before {
                            .lib-css(color, #777);
                        }
                    }
                    &:before, &:hover:before {
                        color: #777;
                    }
                    &:hover {
                        border-right-width: 1px;
                    }
                    border-right: 1px solid #ccc;
                    padding: 0 10px;
                    height: 36px;
                    line-height: 36px;
                }
            }
            .custom-block {
                height: 40px;
                line-height: 40px;
                position: absolute;
                top: 50%;
                left: 60px;
                margin-top: -20px;
                font-size: 14px;
                color: #777;
                & > * {
                    display: inline-block;
                    vertical-align: middle;
                }
                & > a {
                    font-size: 12px;
                }
            }
        }
        &.type12 {
            .nav-sections {
                display: none;
                margin: 38px 0 0;
                z-index: 6;
                position: relative;
            }
            
            .header.panel {
                text-align: left;
                position: absolute;
                left: 50px;
                top: 50%;
                padding: 0 15px;
                margin-top: -20px;
                z-index: 5;
                
                .top-panel {
                    display: inline-block;
                }
                .top-links-area {
                    display: inline-block;
                    vertical-align: middle;
                    
                    & > a {
                        display: none;
                    }
                }
                .top-panel .links {
                    padding: 0;
                    list-style: none;
                    
                    > li {
                        display: block;
                        float: right;
                        color: #000;
                        margin: 0;
                        
                        > a {
                            color: #000;
                            
                            &:hover {
                                color: #000;
                            }
                        }
                        > a, > span {
                            padding: 0 15px;
                            text-transform: uppercase;
                            font-size: 11px;
                            font-weight: 700;
                        }
                        &:first-child {
                            > a, > span {
                                padding-right: 0;
                                border-right: 0;
                            }
                        }
                    }
                }
                .bottom-panel {
                    display: inline-block;
                    vertical-align: middle;
                    margin-right: 15px;
                }
                .search-area {
                    display: inline-block;
                    vertical-align: middle;
                    margin: 0 15px;
                    position: relative;
                    
                    > a {
                        color: #000;
                        display: none;
                        
                        &:hover {
                            color: #000;
                        }
                    }
                }
                .custom-block {
                    display: inline-block;
                    vertical-align: middle;
                    margin: 0 15px;
                    
                    & > a {
                        font-size: 17px;
                        padding: 0;
                        margin: 0 3px;
                    }
                }
                .block-search {
                    margin: 0;
                    width: 200px;
                    
                    &:before {
                        content: "";
                        display: none;
                        position: absolute;
                        top: -20px;
                        left: 20px;
                        border: 10px solid transparent;
                        border-bottom-color: #ccc;
                    }
                    
                    input {
                        height: 40px;
                        border-radius: 25px;
                        border: 1px solid #000;
                        background-color: #fff;
                        color: #000;
                        
                        &::-webkit-input-placeholder {
                            color: #000;
                        }
                        &::-moz-placeholder {
                            color: #000;
                        }
                        &:-moz-placeholder {
                            color: #000;
                        }
                        &:-ms-input-placeholder {
                            color: #000;
                        }
                    }
                    
                    .action.search {
                        left: 5px;
                        height: 40px;
                        width: 40px;
                        
                        &:before {
                            color: #000;
                        }
                    }
                }
                .switcher {
                    float: none;
                    padding: 5px 10px;
                    background-color: #fff;
                    height: 26px;
                    border-radius: 3px;
                    color: #101010;
                    text-transform: uppercase;
                    text-align: right;
                    box-shadow: 1px 2px 1px rgba(0,0,0,0.3);
                    margin-right: 3px;
                    
                    strong {
                        font-weight: 700;
                    }
                }
                .minicart-wrapper {
                    display: inline-block;
                    position: relative;
                    padding: 5px 10px;
                    background-color: #fff;
                    vertical-align: middle;
                    border-radius: 3px;
                    box-shadow: 1px 2px 1px rgba(0,0,0,0.3);
                    top: 0;
                    left: 0;
                    margin: 0;
                    
                    .action.showcart {
                        display: block;
                        margin-top: -2px;
                        
                        &:before, &.active:before {
                            color: #101010;
                            line-height: 14px;
                            font-size: 14px;
                            overflow: visible;
                            vertical-align: middle;
                        }
                        .counter.qty {
                            position: static;
                            vertical-align: middle;
                            margin: 0;
                            padding: 0;
                            font-size: 11px;
                            height: auto;
                            line-height: 14px;
                            width: auto;
                            min-width: 0;
                            margin-right: 5px;
                            color: #101010;
                            text-transform: uppercase;
                            font-weight: 700;
                        }
                        .counter-label {
                            display: inline-block;
                            position: static;
                            overflow: visible;
                            width: auto;
                        }
                    }
                }
            }
            .navigation {
                
                .level0 {
                    > .level-top {
                        color: #fff;
                        line-height: 32px;
                        display: inline-block;
                    }
                    &.active, &.has-active {
                        > .level-top {
                            color: #fff;
                            background-color: transparent;
                            border-radius: 5px;
                        }
                    }
                    &.parent {
                        > a:after {
                            line-height: 32px;
                        }
                        &:hover {
                            > .level-top {
                                border-radius: 5px 5px 0 0;
                            }
                        }
                    }
                    &:hover {
                        > .level-top {
                            color: #fff;
                            background-color: transparent;
                            border-radius: 5px;
                        }
                    }
                }
            }
        }
        .drop-menu {
            position: relative;
            text-align: right;
            float: right;
            width: 25%;
            min-width: 250px;
            padding: 0 15px;
            
            .nav-sections {
                position: absolute;
                top: 100%;
                right: 15px;
                width: 100%;
                width: calc(~"100% - 30px");
                background-color: #fff;
                box-shadow: 0 0 20px rgba(0,0,0,0.4);
                border-bottom: 5px solid #303030;
                visibility: hidden;
                opacity: 0;
            }
            
            > a {
                color: #fff;
                background-color: #303030;
                padding: 14px 15px;
                width: 100%;
                font-size: 13px;
                font-weight: 700;
                display: block;
                line-height: 1;
                text-decoration: none;
                
                &:hover {
                    background-color: #777;
                    color: #fff;
                }
            }
            & + .custom-menu-block {
                display: inline-block;
                line-height: 41px;
                width: auto;
                float: right;
                
                a {
                    padding: 0 14px;
                    font-size: 12px;
                    font-weight: 600;
                    color: #777;
                    white-space: nowrap;
                }
            }
        }
    }
    .cms-index-index .page-header {
        .drop-menu {
            > a {
                pointer-events: none;
            }
            .nav-sections {
                visibility: visible;
                opacity: 1;
                padding: 0 !important;
            }
        }
        &.sticky-header {
            .drop-menu {
                > a {
                    pointer-events: all;
                }
                .nav-sections {
                    visibility: hidden;
                    opacity: 0;
                    
                    &.visible {
                        visibility: visible;
                        opacity: 1;
                    }
                }
            }
        }
        &.type9 {
            .header.content {
                max-width: none;
                padding: 0 45px;
            }
            .navigation {
                max-width: none;
            }
        }
        &.type12 {
            position: absolute;
            width: 100%;
            right: 0;
            top: 0;
            background: transparent;
            
            .header.content {
                max-width: none;
                padding-right: 10.5%;
            }
            .navigation {
                max-width: none;
            }
        }
    }
    .page-main {
        > .page-title-wrapper {
            .page-title {
                display: inline-block;
            }
            .page-title + .action {
                float: right;
                margin-top: @indent__base;
            }
        }
    }

    .customer-welcome {
        .lib-dropdown(
            @_toggle-selector: ~".action.switch",
            @_options-selector: ~"ul",
            @_dropdown-actions-padding: 0,
            @_dropdown-list-item-padding: 0,
            @_dropdown-toggle-icon-content: @icon-down,
            @_dropdown-toggle-active-icon-content: @icon-up,
            @_icon-font-text-hide: true,
            @_icon-font-margin: 0 0 0 5px,
            @_icon-font-size: 16px,
            @_icon-font-line-height: 15px,
            @_dropdown-list-border: 0,
            @_dropdown-list-z-index: @customer-welcome__z-index
        );
        li:extend(.switcher li all) {
            a {
                .lib-link(
                @_link-color: @color-gray20,
                @_link-text-decoration: none,
                @_link-color-visited: @color-gray20,
                @_link-text-decoration-visited: none,
                @_link-color-hover: @color-gray20,
                @_link-text-decoration-hover: none,
                @_link-color-active: @color-gray20,
                @_link-text-decoration-active: none
                );
                display: block;
                line-height: 1.4;
                padding: 8px;
            }
        }
        .customer-menu {
            display: none;
        }
        .action.switch {
            .lib-button-reset();
            vertical-align: top;
        }
        .header.links {
            min-width: 175px;
            box-shadow: 0 0 3px rgba(0,0,0,0.25);
            border-radius: 3px;
            margin-top: 7px;
            right: auto;
            left: 0;
            &:before {
                right: auto;
                left: 10px;
            }
            &:after {
                right: auto;
                left: 9px;
                border-bottom-color: #ccc;
            }
        }
        &.active {
            .action.switch {
                .lib-icon-font-symbol(
                @_icon-font-content: @icon-up,
                @_icon-font-position: after
                );
            }
            .customer-menu {
                display: block;
            }
        }
        .greet {
            display: none;
        }
    }

    .header {
        &.panel {
            > .header.links {
                .lib-list-inline();
                float: left;
                margin-right: auto;
                > li {
                    margin-bottom: 0;
                    &.welcome,
                    > a {
                        display: inline-block;
                        line-height: 1.4;
                    }
                    > a, > span {
                        padding: 0 15px;
                        border-right: 1px solid #ccc;
                    }
                    &:last-child {
                        > a, > span {
                            padding-left: 0;
                        }
                    }
                    &:first-child {
                        > a, > span {
                            padding-right: 0;
                            border-right: 0;
                        }
                    }
                    &.welcome {
                        a {
                            .lib-css(color, @color-white);
                            .lib-css(padding-right, @indent__xs);
                        }
                    }
                }
                > .customer-welcome + .authorization-link {
                    display: none;
                }
            }
        }
        &.content:extend(.abs-add-clearfix-desktop all) {
            padding: 0 15px;
        }
    }

    .logo {
        img {
            max-height: inherit;
        }
    }

    .page-wrapper {
        .lib-vendor-prefix-display(flex);
        .lib-vendor-prefix-flex-direction(column);
        margin: 0;
        min-height: 100%; // Stretch content area for sticky footer
        position: relative;
        transition: margin .3s ease-out 0;
        > .breadcrumbs,
        > .top-container,
        > .widget {
            box-sizing: border-box;
            width: 100%;
        }
        .ie10 &,
        .ie11 & {
            height: 100%;
        }
    }
    body .page-header.type4 .header.panel {
        max-width: calc(~"50% - 50px");
    }
}

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__xl) {
    body {
        &.layout-fullwidth {
            .navigation, .header.content, .top-container, .page-wrapper > .breadcrumbs .items {
                max-width: none;
                padding-left: 20px;
                padding-right: 20px;
            }
            .page-header .header.panel {
                padding-left: 20px;
                padding-right: 20px;
            }
            &.catalog-category-view, &.catalog-product-view, &.cms-index-index {
                .page-main {
                    max-width: none;
                    padding-left: 20px;
                    padding-right: 20px;
                }
            }
            .page-header {
                &.type4 {
                    .header.panel {
                        .top-panel {
                            display: inline-block;
                            vertical-align: middle;
                        }
                        .bottom-panel {
                            display: inline-block;
                            vertical-align: middle;
                            margin-right: 20px;
                        }
                    }
                }
            }
        }
    }
}

//
//  Common
//  _____________________________________________

& when (@media-common = true) {
    .no-display:extend(.abs-no-display all) {
    }

    //
    //  Calendar
    //  ---------------------------------------------

    .ui-datepicker td {
        padding: 0;
    }

    .ui-tooltip {
        border: @tooltip__border-width solid @tooltip__border-color;
        .lib-css(background, @tooltip__background);
        padding: 10px;
    }
    [class^="porto-icon-"]:before, [class*=" porto-icon-"]:before {
        font-family: @icon-font-family;
        font-style: normal;
        font-weight: normal;
        speak: none;

        display: inline-block;
        text-decoration: inherit;
        width: 1em;
        margin-left: .2em;
        text-align: center;
        /* opacity: .8; */

        /* For safety - reset parent styles, that can break glyph codes*/
        font-variant: normal;
        text-transform: none;

        /* fix buttons height, for twitter bootstrap */
        line-height: 1em;

        /* Animation center compensation - margins should be symmetric */
        /* remove if not needed */
        margin-right: .2em;

        /* you can be more comfortable with increased icons size */
        /* font-size: 120%; */

        /* Font smoothing. That was taken from TWBS */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;

        /* Uncomment for 3D effect */
        /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
    }
    .panel {
        -webkit-box-shadow: none;
        box-shadow: none;
    }
    .recent-posts {
        .item {
            .post-image {
                border-radius: 5px;
                overflow: hidden;
                margin: 0 0 15px 0;
                padding: 2px;
                border: 1px solid #e1e1e1;
                background-color: #fff;
                min-height: 120px;
                
                img {
                    border-radius: 4px;
                    width: 100%;
                }
            }
        }
        .post-date {
            float: right;
            margin-left: 10px;
            text-align: center;
            
            .day {
                background-color: #f7f7f7;
                color: @theme-color;
                display: block;
                font-size: 18px;
                font-weight: bold;
                padding: 8px;
            }
            .month {
                background-color: @theme-color;
                border-radius: 0 0 2px 2px;
                box-shadow: 0 -1px 0 0 rgba(0,0,0,.07) inset;
                color: #fff;
                font-size: 0.9em;
                padding: 2px 0;
                display: block;
                width: 45px;
            }
        }
        .postTitle {
            min-height: 55px;
            border: 0;

            h2 {
                font-size: 20px;
                line-height: 27px;
                font-weight: normal;
                padding: 0;
                margin: 0 0 10px 0;
            }
            a:hover {
                text-decoration: none;
            }
        }
        .postContent {
            font-size: 14px;
            line-height: 1.5;
            padding-bottom: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            margin-bottom: 15px;

            & > p {
                margin: 0;
            }
        }
        a.readmore {
            font-weight: 300;
            font-size: 16px;
        }
    }
}
